﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace baseSet.importExport
{
    public class readerCsv
    {
        public static List<string[]> readCsv(string fileName)
        {
            List<string[]> ls = new List<string[]>();
            StreamReader fileReader = new StreamReader(fileName, System.Text.Encoding.Default);
            string strLine = "";
            while (strLine != null)
            {
                strLine = fileReader.ReadLine();
                if (strLine != null && strLine.Length > 0)
                {
                    ls.Add(strLine.Split(','));
                }

            }
            fileReader.Close();
            return ls;
        }
    }
}
